﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RedHouse.Data.Service;

namespace RedHouse.Data.Base
{
    public class LanguageService:ILanguageService
    {
        #region Declaration
        private NewRedHouseEntitiesDataContext _dataContext;
        #endregion

        public LanguageService()
        {
            _dataContext = new NewRedHouseEntitiesDataContext();
        }

        #region ILanguageService Members

        public List<Language> GetAllLanguage()
        {
            return _dataContext.Languages.ToList();
        }

        #endregion
    }
}
